home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / wrb100a.zip / MIDNIGHT.BAT < prev    next >
DOS Batch File  |  1993-01-02  |  1KB  |  30 lines

  1. @ECHO OFF
  2. REM
  3. REM     This is a sample file showing what you can do with the MIDNIGHT.BAT
  4. REM     call that WR-BBS will make if that file is present in the home path.
  5. REM     Note that WR-BBS passes the date as MMDDYY when it calls this file.
  6. REM     ** SEE WRBBS.DOC **
  7. ECHO.
  8. ECHO.
  9. ECHO ████████████████████████████████████████████████████████████
  10. ECHO ██ ┌────────────────┬───────────────────────────────────┐ ██
  11. ECHO ██ │  MIDNIGHT.BAT  │  A utility batch file for WR-BBS  │ ██
  12. ECHO ██ ├────────────────┴───────────────────────────────────┤ ██
  13. ECHO ██ │  Database files are being automatically backed up  │ ██
  14. ECHO ██ └────────────────────────────────────────────────────┘ ██
  15. ECHO ████████████████████████████████████████████████████████████
  16. ECHO.
  17. ECHO.
  18. IF W%WR-BBS%W==WW GOTO ERROR01
  19. CHDIR %WR-BBS%
  20. COPY *.DAT *.DBK /V > NUL
  21. IF NOT EXIST %WR-BBS%\WRBACKUP\NUL MKDIR %WR-BBS%\WRBACKUP
  22. COPY %WR-BBS%\WRBBSLOG.TXT %WR-BBS%\WRBACKUP\AL%1.LOG
  23. IF EXIST %WR-BBS%\WRBACKUP\AL%1.LOG DEL %WR-BBS%\WRBBSLOG.TXT
  24. GOTO FINISHED
  25. :ERROR01
  26. ECHO ERROR:  Environment variable "WR-BBS" not defined.
  27. :FINISHED
  28. ECHO.
  29.  
  30.